[INFO] fetching crate cedar-agent 0.1.1...
[INFO] checking cedar-agent-0.1.1 against master#e6e4f7ed1589e03bc2f6c5931c1a72e7947e8682 for beta-170-4
[INFO] extracting crate cedar-agent 0.1.1 into /workspace/builds/worker-0-tc2/source
[INFO] validating manifest of crates.io crate cedar-agent 0.1.1 on toolchain e6e4f7ed1589e03bc2f6c5931c1a72e7947e8682
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e6e4f7ed1589e03bc2f6c5931c1a72e7947e8682" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking crates.io crate cedar-agent 0.1.1
[INFO] finished tweaking crates.io crate cedar-agent 0.1.1
[INFO] tweaked toml for crates.io crate cedar-agent 0.1.1 written to /workspace/builds/worker-0-tc2/source/Cargo.toml
[INFO] crate crates.io crate cedar-agent 0.1.1 already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e6e4f7ed1589e03bc2f6c5931c1a72e7947e8682" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+e6e4f7ed1589e03bc2f6c5931c1a72e7947e8682" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] fe82afb86816866520e62ca5da8fa047d4e33176fe3716b815a730dc320d51bf
[INFO] running `Command { std: "docker" "start" "-a" "fe82afb86816866520e62ca5da8fa047d4e33176fe3716b815a730dc320d51bf", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "fe82afb86816866520e62ca5da8fa047d4e33176fe3716b815a730dc320d51bf", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "fe82afb86816866520e62ca5da8fa047d4e33176fe3716b815a730dc320d51bf", kill_on_drop: false }`
[INFO] [stdout] fe82afb86816866520e62ca5da8fa047d4e33176fe3716b815a730dc320d51bf
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+e6e4f7ed1589e03bc2f6c5931c1a72e7947e8682" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] fcdc36dedcf2f3fdab29fb157e0c124453ea2b4b2d1766b863df28ec86747fff
[INFO] running `Command { std: "docker" "start" "-a" "fcdc36dedcf2f3fdab29fb157e0c124453ea2b4b2d1766b863df28ec86747fff", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.144
[INFO] [stderr]    Compiling version_check v0.9.4
[INFO] [stderr]    Compiling proc-macro2 v1.0.56
[INFO] [stderr]    Compiling unicode-ident v1.0.8
[INFO] [stderr]    Compiling quote v1.0.27
[INFO] [stderr]    Compiling autocfg v1.1.0
[INFO] [stderr]    Compiling typenum v1.16.0
[INFO] [stderr]    Compiling cfg-if v1.0.0
[INFO] [stderr]    Compiling serde v1.0.163
[INFO] [stderr]    Compiling memchr v2.5.0
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling io-lifetimes v1.0.10
[INFO] [stderr]    Compiling fnv v1.0.7
[INFO] [stderr]     Checking itoa v1.0.6
[INFO] [stderr]    Compiling log v0.4.17
[INFO] [stderr]    Compiling futures-channel v0.3.28
[INFO] [stderr]    Compiling yansi v0.5.1
[INFO] [stderr]     Checking hashbrown v0.12.3
[INFO] [stderr]    Compiling once_cell v1.17.1
[INFO] [stderr]    Compiling parking_lot_core v0.9.7
[INFO] [stderr]     Checking pin-project-lite v0.2.9
[INFO] [stderr]    Compiling subtle v2.4.1
[INFO] [stderr]    Compiling bitflags v1.3.2
[INFO] [stderr]    Compiling generic-array v0.14.7
[INFO] [stderr]    Compiling futures-core v0.3.28
[INFO] [stderr]    Compiling smallvec v1.10.0
[INFO] [stderr]    Compiling indexmap v1.9.3
[INFO] [stderr]    Compiling lock_api v0.4.9
[INFO] [stderr]    Compiling ident_case v1.0.1
[INFO] [stderr]    Compiling strsim v0.10.0
[INFO] [stderr]    Compiling proc-macro2-diagnostics v0.10.0
[INFO] [stderr]    Compiling either v1.8.1
[INFO] [stderr]    Compiling httparse v1.8.0
[INFO] [stderr]     Checking ryu v1.0.13
[INFO] [stderr]    Compiling cpufeatures v0.2.7
[INFO] [stderr]    Compiling time-core v0.1.1
[INFO] [stderr]     Checking bytes v1.4.0
[INFO] [stderr]    Compiling serde_json v1.0.96
[INFO] [stderr]    Compiling slab v0.4.8
[INFO] [stderr]    Compiling time-macros v0.2.9
[INFO] [stderr]    Compiling tokio v1.28.1
[INFO] [stderr]    Compiling ref-cast v1.0.16
[INFO] [stderr]    Compiling futures-task v0.3.28
[INFO] [stderr]     Checking futures-sink v0.3.28
[INFO] [stderr]    Compiling syn v2.0.15
[INFO] [stderr]    Compiling cookie v0.16.2
[INFO] [stderr]    Compiling futures-util v0.3.28
[INFO] [stderr]    Compiling rustix v0.37.19
[INFO] [stderr]    Compiling crunchy v0.2.2
[INFO] [stderr]    Compiling cc v1.0.79
[INFO] [stderr]    Compiling scopeguard v1.1.0
[INFO] [stderr]    Compiling opaque-debug v0.3.0
[INFO] [stderr]    Compiling unicode-xid v0.2.4
[INFO] [stderr]     Checking tracing-core v0.1.30
[INFO] [stderr]    Compiling aho-corasick v1.0.1
[INFO] [stderr]    Compiling proc-macro2-diagnostics v0.9.1
[INFO] [stderr]    Compiling pin-utils v0.1.0
[INFO] [stderr]    Compiling regex-syntax v0.7.1
[INFO] [stderr]     Checking linux-raw-sys v0.3.7
[INFO] [stderr]     Checking getrandom v0.2.9
[INFO] [stderr]     Checking num_cpus v1.15.0
[INFO] [stderr]     Checking signal-hook-registry v1.4.1
[INFO] [stderr]    Compiling dirs-sys-next v0.1.2
[INFO] [stderr]     Checking socket2 v0.4.9
[INFO] [stderr]     Checking rand_core v0.6.4
[INFO] [stderr]    Compiling dirs-next v2.0.0
[INFO] [stderr]     Checking crypto-common v0.1.6
[INFO] [stderr]     Checking inout v0.1.3
[INFO] [stderr]     Checking block-buffer v0.10.4
[INFO] [stderr]     Checking futures-io v0.3.28
[INFO] [stderr]    Compiling tiny-keccak v2.0.2
[INFO] [stderr]    Compiling ppv-lite86 v0.2.17
[INFO] [stderr]    Compiling universal-hash v0.5.0
[INFO] [stderr]    Compiling cipher v0.4.4
[INFO] [stderr]    Compiling digest v0.10.6
[INFO] [stderr]    Compiling siphasher v0.3.10
[INFO] [stderr]    Compiling polyval v0.6.0
[INFO] [stderr]    Compiling ctr v0.9.2
[INFO] [stderr]    Compiling hmac v0.12.1
[INFO] [stderr]    Compiling aes v0.8.2
[INFO] [stderr]    Compiling phf_shared v0.10.0
[INFO] [stderr]    Compiling ghash v0.5.0
[INFO] [stderr]    Compiling aead v0.5.2
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling http v0.2.9
[INFO] [stderr]    Compiling term v0.7.0
[INFO] [stderr]    Compiling parking_lot v0.12.1
[INFO] [stderr]     Checking tracing v0.1.37
[INFO] [stderr]    Compiling mio v0.8.6
[INFO] [stderr]    Compiling num-traits v0.2.15
[INFO] [stderr]    Compiling uncased v0.9.9
[INFO] [stderr]    Compiling fixedbitset v0.4.2
[INFO] [stderr]    Compiling try-lock v0.2.4
[INFO] [stderr]    Compiling precomputed-hash v0.1.1
[INFO] [stderr]    Compiling new_debug_unreachable v1.0.4
[INFO] [stderr]    Compiling bit-vec v0.6.3
[INFO] [stderr]    Compiling string_cache v0.8.7
[INFO] [stderr]    Compiling want v0.3.0
[INFO] [stderr]    Compiling regex v1.8.1
[INFO] [stderr]    Compiling petgraph v0.6.3
[INFO] [stderr]    Compiling bit-set v0.5.3
[INFO] [stderr]    Compiling http-body v0.4.5
[INFO] [stderr]    Compiling ascii-canvas v3.0.0
[INFO] [stderr]    Compiling aes-gcm v0.10.1
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]    Compiling time v0.3.21
[INFO] [stderr]    Compiling psm v0.1.21
[INFO] [stderr]    Compiling hkdf v0.12.3
[INFO] [stderr]    Compiling sha2 v0.10.6
[INFO] [stderr]    Compiling itertools v0.10.5
[INFO] [stderr]    Compiling is-terminal v0.4.7
[INFO] [stderr]    Compiling ena v0.14.2
[INFO] [stderr]    Compiling darling_core v0.20.1
[INFO] [stderr]    Compiling lalrpop-util v0.19.12
[INFO] [stderr]    Compiling httpdate v1.0.2
[INFO] [stderr]    Compiling base64 v0.20.0
[INFO] [stderr]    Compiling inlinable_string v0.1.15
[INFO] [stderr]    Compiling percent-encoding v2.2.0
[INFO] [stderr]    Compiling tower-service v0.3.2
[INFO] [stderr]    Compiling thiserror v1.0.40
[INFO] [stderr]    Compiling diff v0.1.13
[INFO] [stderr]    Compiling regex-syntax v0.6.29
[INFO] [stderr]    Compiling futures v0.3.28
[INFO] [stderr]    Compiling devise_core v0.3.1
[INFO] [stderr]    Compiling stacker v0.1.15
[INFO] [stderr]    Compiling stable-pattern v0.1.0
[INFO] [stderr]     Checking tinyvec_macros v0.1.1
[INFO] [stderr]    Compiling state v0.5.3
[INFO] [stderr]     Checking tinyvec v1.6.0
[INFO] [stderr]    Compiling serde_derive_internals v0.26.0
[INFO] [stderr]    Compiling darling_core v0.13.4
[INFO] [stderr]    Compiling hyper v0.14.26
[INFO] [stderr]    Compiling num-integer v0.1.45
[INFO] [stderr]    Compiling atomic v0.5.1
[INFO] [stderr]    Compiling multer v2.1.0
[INFO] [stderr]    Compiling figment v0.10.8
[INFO] [stderr]    Compiling schemars v0.8.12
[INFO] [stderr]     Checking utf8parse v0.2.1
[INFO] [stderr]    Compiling async-trait v0.1.68
[INFO] [stderr]     Checking anstyle-parse v0.2.0
[INFO] [stderr]     Checking rustc_lexer v0.1.0
[INFO] [stderr]    Compiling lalrpop v0.19.12
[INFO] [stderr]     Checking unicode-normalization v0.1.22
[INFO] [stderr]    Compiling rocket v0.5.0-rc.2
[INFO] [stderr]     Checking encoding_rs v0.8.32
[INFO] [stderr]     Checking dyn-clone v1.0.11
[INFO] [stderr]     Checking mime v0.3.17
[INFO] [stderr]     Checking ipnet v2.7.2
[INFO] [stderr]    Compiling serde_derive v1.0.163
[INFO] [stderr]    Compiling pear_codegen v0.2.4
[INFO] [stderr]    Compiling tokio-macros v2.1.0
[INFO] [stderr]    Compiling ref-cast-impl v1.0.16
[INFO] [stderr]    Compiling darling_macro v0.20.1
[INFO] [stderr]    Compiling thiserror-impl v1.0.40
[INFO] [stderr]    Compiling async-stream-impl v0.3.5
[INFO] [stderr]     Checking linked-hash-map v0.5.6
[INFO] [stderr]     Checking colorchoice v1.0.0
[INFO] [stderr]    Compiling glob v0.3.1
[INFO] [stderr]    Compiling derive_arbitrary v1.3.0
[INFO] [stderr]    Compiling devise_codegen v0.3.1
[INFO] [stderr]    Compiling schemars_derive v0.8.12
[INFO] [stderr]     Checking destructure_traitobject v0.2.0
[INFO] [stderr]     Checking spin v0.9.8
[INFO] [stderr]    Compiling darling v0.20.1
[INFO] [stderr]     Checking lazy_static v1.4.0
[INFO] [stderr]     Checking anstyle v1.0.0
[INFO] [stderr]    Compiling anyhow v1.0.71
[INFO] [stderr]    Compiling serde_with_macros v3.0.0
[INFO] [stderr]     Checking anstyle-query v1.0.0
[INFO] [stderr]     Checking unicode-script v0.5.5
[INFO] [stderr]     Checking fastrand v1.9.0
[INFO] [stderr]     Checking unsafe-any-ors v1.0.0
[INFO] [stderr]     Checking yaml-rust v0.4.5
[INFO] [stderr]    Compiling pear v0.2.4
[INFO] [stderr]     Checking async-stream v0.3.5
[INFO] [stderr]     Checking tempfile v3.5.0
[INFO] [stderr]     Checking anstream v0.3.2
[INFO] [stderr]     Checking unicode-security v0.1.0
[INFO] [stderr]     Checking ordered-float v2.10.0
[INFO] [stderr]     Checking time v0.1.45
[INFO] [stderr]    Compiling darling_macro v0.13.4
[INFO] [stderr]     Checking atty v0.2.14
[INFO] [stderr]    Compiling devise v0.3.1
[INFO] [stderr]    Compiling heck v0.4.1
[INFO] [stderr]     Checking clap_lex v0.4.1
[INFO] [stderr]     Checking binascii v0.1.4
[INFO] [stderr]     Checking iana-time-zone v0.1.56
[INFO] [stderr]     Checking typemap-ors v1.0.0
[INFO] [stderr]     Checking chrono v0.4.24
[INFO] [stderr]    Compiling derivative v2.2.0
[INFO] [stderr]     Checking clap_builder v4.2.7
[INFO] [stderr]     Checking arbitrary v1.3.0
[INFO] [stderr]    Compiling rocket_http v0.5.0-rc.2
[INFO] [stderr]    Compiling clap_derive v4.2.0
[INFO] [stderr]     Checking thread-id v4.0.0
[INFO] [stderr]     Checking arc-swap v1.6.0
[INFO] [stderr]     Checking event-listener v2.5.3
[INFO] [stderr]     Checking log-mdc v0.1.0
[INFO] [stderr]     Checking humantime v2.1.0
[INFO] [stderr]     Checking async-lock v2.7.0
[INFO] [stderr]    Compiling darling v0.13.4
[INFO] [stderr]     Checking clap v4.2.7
[INFO] [stderr]    Compiling rocket_codegen v0.5.0-rc.2
[INFO] [stderr]    Compiling rocket_okapi_codegen v0.8.0-rc.2
[INFO] [stderr]     Checking smol_str v0.2.0
[INFO] [stderr]     Checking toml v0.5.11
[INFO] [stderr]     Checking ubyte v0.10.3
[INFO] [stderr]     Checking serde-value v0.7.0
[INFO] [stderr]     Checking envy v0.4.2
[INFO] [stderr]     Checking serde_yaml v0.8.26
[INFO] [stderr]     Checking serde_with v3.0.0
[INFO] [stderr]     Checking log4rs v1.2.0
[INFO] [stderr]     Checking okapi v0.7.0-rc.1
[INFO] [stderr]    Compiling cedar-policy-core v2.0.2
[INFO] [stderr]     Checking tokio-util v0.7.8
[INFO] [stderr]     Checking tokio-stream v0.1.14
[INFO] [stderr]     Checking h2 v0.3.18
[INFO] [stderr]     Checking cedar-policy-validator v2.0.1
[INFO] [stderr]     Checking rocket_okapi v0.8.0-rc.2
[INFO] [stderr]     Checking cedar-policy v2.0.2
[INFO] [stderr]     Checking cedar-agent v0.1.1 (/opt/rustwide/workdir)
[INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&std::option::Option<std::string::String>` instead of borrowing the inner type
[INFO] [stdout]   --> src/config.rs:26:58
[INFO] [stdout]    |
[INFO] [stdout] 26 |         if let Some(authentication) = self.authentication.borrow() {
[INFO] [stdout]    |                                                          ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(suspicious_double_ref_op)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&std::option::Option<std::string::String>` instead of borrowing the inner type
[INFO] [stdout]   --> src/config.rs:29:38
[INFO] [stdout]    |
[INFO] [stdout] 29 |         if let Some(addr) = self.addr.borrow() {
[INFO] [stdout]    |                                      ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&std::option::Option<u16>` instead of borrowing the inner type
[INFO] [stdout]   --> src/config.rs:32:38
[INFO] [stdout]    |
[INFO] [stdout] 32 |         if let Some(port) = self.port.borrow() {
[INFO] [stdout]    |                                      ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&ErrorResponse` instead of borrowing the inner type
[INFO] [stdout]   --> src/errors/response.rs:99:45
[INFO] [stdout]    |
[INFO] [stdout] 99 |         let body = serde_json::to_string(res.borrow()).unwrap();
[INFO] [stdout]    |                                             ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&schemas::policies::Policy` instead of borrowing the inner type
[INFO] [stdout]   --> src/routes/policies.rs:46:57
[INFO] [stdout]    |
[INFO] [stdout] 46 |     let added_policy = policy_store.create_policy(policy.borrow()).await;
[INFO] [stdout]    |                                                         ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&schemas::data::Entities` instead of borrowing the inner type
[INFO] [stdout]   --> src/services/data/memory.rs:96:75
[INFO] [stdout]    |
[INFO] [stdout] 96 |         let cedar_entities: cedar_policy::Entities = match schema_entities.borrow().try_into() {
[INFO] [stdout]    |                                                                           ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&schemas::policies::Policy` instead of borrowing the inner type
[INFO] [stdout]    --> src/services/policies/memory.rs:117:68
[INFO] [stdout]     |
[INFO] [stdout] 117 |                     let policy: cedar_policy::Policy = match policy.borrow().try_into() {
[INFO] [stdout]     |                                                                    ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&schemas::policies::Policy` instead of borrowing the inner type
[INFO] [stdout]    --> src/services/policies/memory.rs:140:56
[INFO] [stdout]     |
[INFO] [stdout] 140 |         let policy: cedar_policy::Policy = match policy.borrow().try_into() {
[INFO] [stdout]     |                                                        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&std::option::Option<std::string::String>` instead of borrowing the inner type
[INFO] [stdout]   --> src/config.rs:26:58
[INFO] [stdout]    |
[INFO] [stdout] 26 |         if let Some(authentication) = self.authentication.borrow() {
[INFO] [stdout]    |                                                          ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(suspicious_double_ref_op)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&std::option::Option<std::string::String>` instead of borrowing the inner type
[INFO] [stdout]   --> src/config.rs:29:38
[INFO] [stdout]    |
[INFO] [stdout] 29 |         if let Some(addr) = self.addr.borrow() {
[INFO] [stdout]    |                                      ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&std::option::Option<u16>` instead of borrowing the inner type
[INFO] [stdout]   --> src/config.rs:32:38
[INFO] [stdout]    |
[INFO] [stdout] 32 |         if let Some(port) = self.port.borrow() {
[INFO] [stdout]    |                                      ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&ErrorResponse` instead of borrowing the inner type
[INFO] [stdout]   --> src/errors/response.rs:99:45
[INFO] [stdout]    |
[INFO] [stdout] 99 |         let body = serde_json::to_string(res.borrow()).unwrap();
[INFO] [stdout]    |                                             ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&schemas::policies::Policy` instead of borrowing the inner type
[INFO] [stdout]   --> src/routes/policies.rs:46:57
[INFO] [stdout]    |
[INFO] [stdout] 46 |     let added_policy = policy_store.create_policy(policy.borrow()).await;
[INFO] [stdout]    |                                                         ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&schemas::data::Entities` instead of borrowing the inner type
[INFO] [stdout]   --> src/services/data/memory.rs:96:75
[INFO] [stdout]    |
[INFO] [stdout] 96 |         let cedar_entities: cedar_policy::Entities = match schema_entities.borrow().try_into() {
[INFO] [stdout]    |                                                                           ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&schemas::policies::Policy` instead of borrowing the inner type
[INFO] [stdout]    --> src/services/policies/memory.rs:117:68
[INFO] [stdout]     |
[INFO] [stdout] 117 |                     let policy: cedar_policy::Policy = match policy.borrow().try_into() {
[INFO] [stdout]     |                                                                    ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&schemas::policies::Policy` instead of borrowing the inner type
[INFO] [stdout]    --> src/services/policies/memory.rs:140:56
[INFO] [stdout]     |
[INFO] [stdout] 140 |         let policy: cedar_policy::Policy = match policy.borrow().try_into() {
[INFO] [stdout]     |                                                        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 8 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 8 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&config::Config` instead of borrowing the inner type
[INFO] [stdout]   --> src/main.rs:28:57
[INFO] [stdout]    |
[INFO] [stdout] 28 |     let server_config: rocket::figment::Figment = config.borrow().into();
[INFO] [stdout]    |                                                         ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(suspicious_double_ref_op)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&std::option::Option<std::string::String>` instead of borrowing the inner type
[INFO] [stdout]   --> src/config.rs:26:58
[INFO] [stdout]    |
[INFO] [stdout] 26 |         if let Some(authentication) = self.authentication.borrow() {
[INFO] [stdout]    |                                                          ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&std::option::Option<std::string::String>` instead of borrowing the inner type
[INFO] [stdout]   --> src/config.rs:29:38
[INFO] [stdout]    |
[INFO] [stdout] 29 |         if let Some(addr) = self.addr.borrow() {
[INFO] [stdout]    |                                      ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&std::option::Option<u16>` instead of borrowing the inner type
[INFO] [stdout]   --> src/config.rs:32:38
[INFO] [stdout]    |
[INFO] [stdout] 32 |         if let Some(port) = self.port.borrow() {
[INFO] [stdout]    |                                      ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&ErrorResponse` instead of borrowing the inner type
[INFO] [stdout]   --> src/errors/response.rs:99:45
[INFO] [stdout]    |
[INFO] [stdout] 99 |         let body = serde_json::to_string(res.borrow()).unwrap();
[INFO] [stdout]    |                                             ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&schemas::policies::Policy` instead of borrowing the inner type
[INFO] [stdout]   --> src/routes/policies.rs:46:57
[INFO] [stdout]    |
[INFO] [stdout] 46 |     let added_policy = policy_store.create_policy(policy.borrow()).await;
[INFO] [stdout]    |                                                         ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&schemas::data::Entities` instead of borrowing the inner type
[INFO] [stdout]   --> src/services/data/memory.rs:96:75
[INFO] [stdout]    |
[INFO] [stdout] 96 |         let cedar_entities: cedar_policy::Entities = match schema_entities.borrow().try_into() {
[INFO] [stdout]    |                                                                           ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&schemas::policies::Policy` instead of borrowing the inner type
[INFO] [stdout]    --> src/services/policies/memory.rs:117:68
[INFO] [stdout]     |
[INFO] [stdout] 117 |                     let policy: cedar_policy::Policy = match policy.borrow().try_into() {
[INFO] [stdout]     |                                                                    ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&schemas::policies::Policy` instead of borrowing the inner type
[INFO] [stdout]    --> src/services/policies/memory.rs:140:56
[INFO] [stdout]     |
[INFO] [stdout] 140 |         let policy: cedar_policy::Policy = match policy.borrow().try_into() {
[INFO] [stdout]     |                                                        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&config::Config` instead of borrowing the inner type
[INFO] [stdout]   --> src/main.rs:28:57
[INFO] [stdout]    |
[INFO] [stdout] 28 |     let server_config: rocket::figment::Figment = config.borrow().into();
[INFO] [stdout]    |                                                         ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(suspicious_double_ref_op)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&std::option::Option<std::string::String>` instead of borrowing the inner type
[INFO] [stdout]   --> src/config.rs:26:58
[INFO] [stdout]    |
[INFO] [stdout] 26 |         if let Some(authentication) = self.authentication.borrow() {
[INFO] [stdout]    |                                                          ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&std::option::Option<std::string::String>` instead of borrowing the inner type
[INFO] [stdout]   --> src/config.rs:29:38
[INFO] [stdout]    |
[INFO] [stdout] 29 |         if let Some(addr) = self.addr.borrow() {
[INFO] [stdout]    |                                      ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&std::option::Option<u16>` instead of borrowing the inner type
[INFO] [stdout]   --> src/config.rs:32:38
[INFO] [stdout]    |
[INFO] [stdout] 32 |         if let Some(port) = self.port.borrow() {
[INFO] [stdout]    |                                      ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&ErrorResponse` instead of borrowing the inner type
[INFO] [stdout]   --> src/errors/response.rs:99:45
[INFO] [stdout]    |
[INFO] [stdout] 99 |         let body = serde_json::to_string(res.borrow()).unwrap();
[INFO] [stdout]    |                                             ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&schemas::policies::Policy` instead of borrowing the inner type
[INFO] [stdout]   --> src/routes/policies.rs:46:57
[INFO] [stdout]    |
[INFO] [stdout] 46 |     let added_policy = policy_store.create_policy(policy.borrow()).await;
[INFO] [stdout]    |                                                         ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&schemas::data::Entities` instead of borrowing the inner type
[INFO] [stdout]   --> src/services/data/memory.rs:96:75
[INFO] [stdout]    |
[INFO] [stdout] 96 |         let cedar_entities: cedar_policy::Entities = match schema_entities.borrow().try_into() {
[INFO] [stdout]    |                                                                           ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&schemas::policies::Policy` instead of borrowing the inner type
[INFO] [stdout]    --> src/services/policies/memory.rs:117:68
[INFO] [stdout]     |
[INFO] [stdout] 117 |                     let policy: cedar_policy::Policy = match policy.borrow().try_into() {
[INFO] [stdout]     |                                                                    ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&schemas::policies::Policy` instead of borrowing the inner type
[INFO] [stdout]    --> src/services/policies/memory.rs:140:56
[INFO] [stdout]     |
[INFO] [stdout] 140 |         let policy: cedar_policy::Policy = match policy.borrow().try_into() {
[INFO] [stdout]     |                                                        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 9 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 9 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished dev [unoptimized + debuginfo] target(s) in 35.08s
[INFO] running `Command { std: "docker" "inspect" "fcdc36dedcf2f3fdab29fb157e0c124453ea2b4b2d1766b863df28ec86747fff", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "fcdc36dedcf2f3fdab29fb157e0c124453ea2b4b2d1766b863df28ec86747fff", kill_on_drop: false }`
[INFO] [stdout] fcdc36dedcf2f3fdab29fb157e0c124453ea2b4b2d1766b863df28ec86747fff
